%%%%%
%%
%% This file sets up the Green datatype and creates Green macros.
%% These are for greensheets.
%%
%%%%%

\DECLARESUBTYPE{Green}{Element}
\PRESETS{Green}{
  \FD\MYfile	{} %% filename (in \greens dir)
  \FS\MYtext	{\ifx\MYfile\empty\else%
		  \getextractenvs{document}{\greens/\MYfile}%
		\fi}
  }


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NEW{Green}{\gRules}{
  \s\MYname	{Rules}
  \s\MYfile	{Combat.tex}
  }
\NEW{Green}{\gTalents}{
  \s\MYname	{Talents}
  \s\MYfile	{Talents.tex}
  }
  
\NEW{Green}{\gNPC}{
  \s\MYname{NPC Greensheet}
  \s\MYfile{NPC.tex}
  }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
